#ifndef _INETADDRESS_HPP_
#define _INETADDRESS_HPP_

#include "func.h"

#include <string.h>

#include <string>
using std::string;

namespace wd{

class InetAddress{
public:
    InetAddress(int port, string ip);
    InetAddress(const struct sockaddr_in &);
    string ip();
    unsigned short port();
    struct sockaddr_in * getInetAddrptr();
private:
    struct sockaddr_in _addr;
};




}



#endif

